<%@page contentType="text/html;charset=UTF-8" isErrorPage="true"%>
<%@page import="org.slf4j.Logger,org.slf4j.LoggerFactory;" %>
<html> 
<head><title>错误信息</title></head> 
<body> 
     错误码： <%=request.getAttribute("javax.servlet.error.status_code")%> <br> 
     信息： <%=request.getAttribute("javax.servlet.error.message")%> <br> 
     异常： <%=request.getAttribute("javax.servlet.error.exception_type")%> <br> 
  <% 
  	Logger logger = LoggerFactory.getLogger(Exception.class);
  	logger.error(Integer.toString((Integer)request.getAttribute("javax.servlet.error.status_code")));
  	logger.error((String)request.getAttribute("javax.servlet.error.message"));
  	logger.error((String)request.getAttribute("javax.servlet.error.exception_type"));
  %>   
</body> 
</html> 